package com.sky.mapper.admin;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorsMapper {

    /**
     * 保存口味信息
     */
     void insert(List<DishFlavor> flavorsList);

    /**
     * 根据菜品id查询口味
     */
     @Select("select * from dish_flavor where dish_id = #{dishId}")
    List<DishFlavor> queryById(Long dishId);

    /**
     * 删除，批量删除
     */
    void deleteByIds(List<Long> ids);



}
